<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base target="${cxt } /">
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="css/dz/login.css" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>登录</title>
<script type="text/javascript" src="js/jquery-3.2.1.min.js"></script>
<script type="text/javascript">
	$(function() {
		var width = screen.availWidth;
		var height = screen.availHeight;
		$(".wxts").css({
			"width" : width,
			"height" : height
		});
		$(".wxts_btn").click(function() {
			$(".wxts").css("display", "none");
		});
		////////////////
		$("#login").click(function() {
			var name = $("#login_name").val();
			var pw = $("#login_pw").val();
			var txt1 = "请输入用户名";
			var txt2 = "请输入密码";
			if (name == "" || name == null) {
				show(txt1);
				return;
			}
			if (pw == "" || pw == null) {
				show(txt2);
				return;
			}
			$("#login_form").submit();
		});
	////////////////////////////////
		action();
	});
	function action(){
		var flage = $("[name=flag]").val();
		if(flage){
			var txt3 = "用户名或密码错误！";
			show(txt3);
		}
	}
	function show(txt) {
		$(".wxts").css("display", "block");
		$("#ts").text(txt);
	}
</script>
</head>
<body >
<div class="login_bg">
	<div class="login_body">
		<div class="login_inputBox">
			<h1>登录</h1>
			<form class="relative" method="post" id="login_form" action="login">
				<label class="label1"><i class="login_i_name"></i></label><input
					class="login_name" type="text" name="login_name" id="login_name" value=""
					placeholder="请输入手机号/证件号" /> <label class="label2"><i
					class="login_i_pw"></i></label><input class="login_pw" type="password"
					name="login_pw" id="login_pw" value="" placeholder="请输入密码" />
				<p class="login_p">
					<input class="login_check" type="checkbox" /> <span
						class="login_font_style">30天内自动登录</span> <a class="wjmm" href="#">忘记密码？</a>
				</p>
			</form>
			<div id="login" class="login_btn btn_login">登录</div>
			<div id="regist" class="login_btn btn_zc" onclick="javascript:location.href='register'">
				<span>还不是会员？</span><a >立即注册</a>
			</div>
		</div>
	</div>
	<input type="hidden" name= "flag"  value="${flag  }" />
	<div class="wxts">
		<div class="wxts_ts">
			<h1 class="wxts_h">温馨提示</h1>
			<p id="ts"></p>
			<div class="wxts_btn">关闭</div>
		</div>
	</div>
	</div>
	
</body>
</html>